package com.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author ShouPeng
 * @since 2024-01-16
 * 优惠券实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
//@ApiModel(value="Coupon对象", description="优惠券表")
@TableName("mall_coupon")
public class Coupon implements Serializable {

    private static final long serialVersionUID=1L;

//    @ApiModelProperty(value = "优惠券编号")
    @TableId(value = "coupon_id", type = IdType.AUTO)
    private Integer couponId;

//    @ApiModelProperty(value = "优惠券名称")
    private String couponName;

//    @ApiModelProperty(value = "优惠券使用范围")
    private String couponScope;

//    @ApiModelProperty(value = "优惠券面额")
    private Integer couponValue;

//    @ApiModelProperty(value = "最低消费金额")
    private Integer couponThreshold;

//    @ApiModelProperty(value = "优惠券有效期")
    private Integer couponExpiryDate;

//    @ApiModelProperty(value = "优惠券创建时间")
    private String couponCreateTime;

    @TableField(exist = false)
    private String couponExpireTime;

    @TableField(exist = false)
    private Boolean couponStatus;
}
